package com.zmn.plat.manager.dictionary;

/**
 * 绩效比例配置审核日志数据字段
 *
 * @author: HuangYongJie
 * @version: v1.0
 * @since: 2019/12/10 10:39
 **/
public class KpiConfigLogDict {

    /**
     * 操作：审核
     */
    public static final String KPI_CONFIG_AUDI_OPT = "审核";
    /**
     * 操作：修改
     */
    public static final String KPI_CONFIG_UPDATE_OPT = "修改";

    public static final String KPI_CONFIG_AUDI_SUCCESS_OPT = "审核成功";

    public static final String KPI_CONFIG_AUDI_FAILED_OPT = "审核失败";

    /**
     * =====================================日志分类=====================================================================
     */

    /**
     * 评价得分
     */
    public static final String KPI_CONFIG_TYPE_COMMENT_COMPANY = "comment_scope_company";
    public static final String KPI_CONFIG_TYPE_COMMENT_CITY = "comment_scope_city";
    public static final String KPI_CONFIG_TYPE_COMMENT_PLAT = "comment_scope_plat";

    /**
     * 考试等级
     */
    public static final String KPI_CONFIG_TYPE_TECHNICAL_COMPANY = "technical_level_company";
    public static final String KPI_CONFIG_TYPE_TECHNICAL_CITY = "technical_level_city";
    public static final String KPI_CONFIG_TYPE_TECHNICAL_PLAT = "technical_level_plat";


    public enum KpiCofingKpiTypEnum {
        KPI_CONFIG_TYPE_COMMENT(3, "comment_scope"),
        KPI_CONFIG_TYPE_TECHNICAL(4, "technical_level"),
        KPI_CONFIG_TYPE_RESERVATIONRATE(5, "reservation_rate"),
        KPI_CONFIG_TYPE_FINISHEDIONTIME(6, "finished_ontime"),
        KPI_CONFIG_TYPE_COMPLETE(7, "complete_rate");
        private Integer code;
        private String value;

        KpiCofingKpiTypEnum(Integer code, String value) {
            this.code = code;
            this.value = value;
        }

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
        public static KpiCofingKpiTypEnum ergodicOf(Integer code) {
            for (KpiCofingKpiTypEnum cofingKpiType : values()) {
                if (cofingKpiType.getCode().equals(code)) {
                    return cofingKpiType;
                }
            }
            return null;
        }
    }
    public enum KpiConfigTypeEnum{
        KPI_CONFIG_TYPE_CITY(3, "_city"),
        KPI_CONFIG_TYPE_COMPANY(2, "_company"),
        KPI_CONFIG_TYPE_PLAT(1, "_plat");
        private Integer code;
        private String value;

        KpiConfigTypeEnum(Integer code, String value) {
            this.code = code;
            this.value = value;
        }
        public Integer getCode() {
            return code;
        }
        public void setCode(Integer code) {
            this.code = code;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
        public static KpiConfigTypeEnum ergodicOf(Integer code) {
            for (KpiConfigTypeEnum configTypeEnum : values()) {
                if (configTypeEnum.getCode().equals(code)) {
                    return configTypeEnum;
                }
            }
            return null;
        }
    }
    /**
     * =====================================日志分类=====================================================================
     */



}
